package com.itheima.web.mapper.cms;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.vo.cms.CmsSubject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 * 专题表 Mapper 接口
 * </p>
 *
 * @author 王志斌
 * @since 2022-07-06
 */
@Mapper
public interface CmsSubjectMapper extends BaseMapper<CmsSubject> {

    /**
     * 获取全部商品专题
     * @return
     */
    @Select("select * from cms_subject;")
    List<CmsSubject> getAll();
}
